package com.example.yihur.dockerdemo.controller;


import com.example.yihur.dockerdemo.service.DockerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Administrator
 */
@RestController
@RequestMapping(value = "/docker")
public class DockerController {

    @Autowired
    private DockerService dockerService;

    @GetMapping(value = "/redis")
    public Map<String,Object> returnMapRedis(){
        return dockerService.mapSetRedis();
    }
}
